<template>
  <view class="sign-popup">
    <view>
      <slot></slot>
    </view>
    <image
      class="close"
      :src="ossImg('icons/sign/close.png')"
      @click.stop="emits('close')"
    />
  </view>
</template>

<script setup>
import { ossImg } from "@/utils/utils";
import { defineEmits } from "vue";

const emits = defineEmits(["close"]);
</script>

<style lang="less" scoped>
.sign-popup {
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 99;
  .close {
    width: 30px;
    height: 30px;
    display: block;
  }
}
</style>
